<template>
  <div>
    <ul>
      <li v-for="(item,key) in items" :key="key">
        <p>{{ item.title}}</p>
        <img :src="item.thumbnail_pic_s" alt="">
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: 'HelloWorld',
  data () {
    return {
      items:[],
    }
  },
  created(){
    this.$axios('http://www.wwtliu.com/sxtstu/news/juhenews.php', {
      params:{
        type:'junshi',
        count:2
      }
    })
    .then(res=>{
      this.items = res.data.result.data
      console.log(res.data.result.data)
    })
    .catch(error=>{
      console.log(error)
    })
  }
}
</script>

<style scoped>

</style>
